#!/usr/bin/env Python
#-*-coding:utf-8-*-
import random



USERAGENT = [
    'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36',
    'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36',
    'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36',
    'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
    'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36',
    'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko',
    'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQDownload 732; .NET4.0C; .NET4.0E)',
    'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36',
    'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1',
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36',


]

#移动
USERAGENT_IOS = [
    'Mozilla/5.0 (Linux; Android 4.4.2; OPPO R11 Build/NMF26X) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36',
    "Mozilla/5.0 (Linux; U; Android 6.0.1; zh-CN; SM-C7000 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.6.2.948 Mobile Safari/537.36",
    "Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; BLA-AL00 Build/HUAWEIBLA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/8.9 Mobile Safari/537.36",
    "Mozilla/5.0 (Linux; Android 8.1; PAR-AL00 Build/HUAWEIPAR-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/044304 Mobile Safari/537.36 MicroMessenger/6.7.3.1360(0x26070333) NetType/WIFI Language/zh_CN Process/tools",
    "Mozilla/5.0 (Linux; Android 8.1.0; ALP-AL00 Build/HUAWEIALP-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.11 (Baidu; P1 8.1.0)",
    "Mozilla/5.0 (Linux; Android 6.0.1; OPPO A57 Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.10 (Baidu; P1 6.0.1)",
    "Mozilla/5.0 (Linux; U; Android 8.0.0; zh-CN; MHA-AL00 Build/HUAWEIMHA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.1.4.994 Mobile Safari/537.36",
    "Mozilla/5.0 (Linux; U; Android 8.0.0; zh-CN; MHA-AL00 Build/HUAWEIMHA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.6.4.950 UWS/2.11.1.50 Mobile Safari/537.36 AliApp(DingTalk/4.5.8) com.alibaba.android.rimet/10380049 Channel/227200 language/zh-CN",
    "Mozilla/5.0 (Linux; U; Android 8.1.0; zh-CN; EML-AL00 Build/HUAWEIEML-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/11.9.4.974 UWS/2.13.1.48 Mobile Safari/537.36 AliApp(DingTalk/4.5.11) com.alibaba.android.rimet/10487439 Channel/227200 language/zh-CN",
    "Mozilla/5.0 (Linux; U; Android 4.1.2; zh-cn; HUAWEI MT1-U06 Build/HuaweiMT1-U06) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 baiduboxapp/042_2.7.3_diordna_8021_027/IEWAUH_61_2.1.4_60U-1TM+IEWAUH/7300001a/91E050E40679F078E51FD06CD5BF0A43%7C544176010472968/1",
    "Mozilla/5.0 (Linux; U; Android 8.0.0; zh-CN; BAC-AL00 Build/HUAWEIBAC-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/11.9.4.974 UWS/2.13.1.48 Mobile Safari/537.36 AliApp(DingTalk/4.5.11) com.alibaba.android.rimet/10487439 Channel/227200 language/zh-CN",
    "Mozilla/5.0 (Linux; U; Android 8.1.0; zh-CN; BLA-AL00 Build/HUAWEIBLA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/11.9.4.974 UWS/2.13.1.48 Mobile Safari/537.36 AliApp(DingTalk/4.5.11) com.alibaba.android.rimet/10487439 Channel/227200 language/zh-CN",
    "Mozilla/5.0 (Linux; U; Android 8.0.0; zh-cn; Mi Note 2 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.128 Mobile Safari/537.36 XiaoMi/MiuiBrowser/10.1.1",
    "Mozilla/5.0 (Linux; Android 8.0.0; MI 6 Build/OPR1.170623.027) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/62.0.3202.84 Mobile Safari/537.36 Maxthon/3235",
    "Mozilla/5.0 (Linux; Android 8.0.0; MI 6 Build/OPR1.170623.027; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.11 (Baidu; P1 8.0.0)",
    "Mozilla/5.0 (Linux; U; Android 8.0.0; zh-CN; MI 5 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/11.8.9.969 Mobile Safari/537.36",
    "Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; MI MAX 3 Build/OPM1.171019.019) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.128 Mobile Safari/537.36 XiaoMi/MiuiBrowser/10.1.1",
    "Mozilla/5.0 (Linux; Android 8.0.0; MI 5 Build/OPR1.170623.032; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.10 (Baidu; P1 8.0.0)",
    "Mozilla/5.0 (Linux; Android 7.0; MI 5s Plus Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.11 (Baidu; P1 7.0)",
]
#百度，搜狗，遨游，IE，谷歌，火狐,2345,QQ,UC,OPERA.360
BAI_DU_COOKIE = [
    "BAIDUID=ED7C6B6F8D2E87A9E7FA20228C5005CE:FG=1; BIDUPSID=ED7C6B6F8D2E87A9E7FA20228C5005CE; PSTM=1554970623; BDRCVFR[VDYvcuahx66]=mk3SLVN4HKm; BD_HOME=0; BD_UPN=12314753; H_PS_645EC=d9a6bN9PtoilRg8Q4mLUubvfxXC7dMT6Kos5Z7nRWck%2F55%2B3Z6EM8v9UdGo; delPer=0; BD_CK_SAM=1; PSINO=5; BDSVRTM=212; H_PS_PSSID=1438_28794_21080_28723_28557_28837_28584_26350_28519_20719; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598"#UC
    ,"BAIDUID=33A3273D5A2720F3F1EA95FB657D4CA1:FG=1; BIDUPSID=33A3273D5A2720F3F1EA95FB657D4CA1; PSTM=1548313910; delPer=0; BD_HOME=0; H_PS_PSSID=1444_28794_21108_28721_28557_28838_28585_26350_28604_28626_20718; BD_UPN=1a314753; BD_CK_SAM=1; PSINO=5; H_PS_645EC=9b21H1kF8kegeLOXb%2BjmuQqzfcL4W5Jf7aepIQ2HhkBPfyUshZHI6p0s2Xk; BDSVRTM=182; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598"# QQ
    ,"BAIDUID=6E9CDEA895645364D44CD7F7D59146B9:FG=1; PSTM=1542371903; BIDUPSID=75696BC3CC08EFB35DA8C92523CC94FD; BDUSS=IwQnJBMHQyQi1PMWFJSWNmZ00tQXZiMFBFS05wYUZYUnlqN2h0bX5DTG4tVzFjQVFBQUFBJCQAAAAAAAAAAAEAAABCIqEs0KHCv9fTusjSu7GtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOdsRlznbEZcQj; ispeed_lsm=2; MCITY=-289%3A315%3A; pgv_pvi=7278823424; uc_login_unique=be20938dff55738c34e79c7c0a674797; bdindexid=aj9bqjf7gjiddrgrsp5uv7e913; SIGNIN_UC=70a2711cf1d3d9b1a82d2f87d633bd8a03049629555; uc_recom_mark=cmVjb21tYXJrXzIzMjc2Mjc1; BDRCVFR[Ra18Y3xvIIT]=mk3SLVN4HKm; ZD_ENTRY=empty; shifen[98883486287_28824]=1554965627; BCLID=9682423553387085103; BDSFRCVID=DP8OJeC62GVS-gR9G9cY2QWULey6R-bTH6aogwg5PHgg3apyhcN0EG0Pjx8g0Ku-fFQGogKK0eOTHkCF_2uxOjjg8UtVJeC6EG0P3J; H_BDCLCKID_SF=tbFjoDthtDv5j5rnbtTM-tC852T22-us3N4O2hcH0KLKsUQbqtJCefb--nuHQlbPBIT8_f_EKfb1MRjvbnJJjq8nbUte5RO82I7wop5TtUJ8JKnTDMRhqtKz0tJyKMnitIT9-pno0hQrh459XP68bTkA5bjZKxtq3mkjbIOFfJOKHIC4jT_WjxK; BDRCVFR[EzYDMnK0Xs6]=H_wOgIiJ06tUy73IA9EUB4WUvY; delPer=0; BD_CK_SAM=1; PSINO=5; H_PS_PSSID=1450_21111_28774_28722_28558_28836_28585_28604_28627_20719; BD_UPN=17314353; sug=3; sugstore=0; ORIGIN=0; bdime=0; H_PS_645EC=769bL4gDopYZ0VxKHgd6UA%2BGSUXo0hDwmqhFtfOaiCJGi3Z2I81Ex484TvOYYw; BDORZ=FFFB88E999055A3F8A630C64834BD6D0",#搜狗
    "BAIDUID=478895AFA7F4C5DFFF06AE1586742032:FG=1; BIDUPSID=478895AFA7F4C5DFFF06AE1586742032; PSTM=1554964261; BAIDULOC=13530652.464057697_3647028.8417972336_197_289_1554964245763; lsv=globalTjs_3aec804-wwwTcss_fcf1ef3-wwwTcss_fcf1ef3-wwwBcss_18d3e1a-framejs_e34fa6b-atomentryjs_689bd71-globalBjs_218d6b6-sugjs_2c6c63d-wwwjs_7c5fea8; MSA_WH=420_1019; plus_cv=1::m:49a3f4a6; BDICON=10294984.98; H_WISE_SIDS=127760_126125_128698_129323_114178_128146_129152_120177_118889_118862_118851_118834_118797_130763_129565_107320_129945_129751_130157_130122_130222_117331_130350_117433_130075_129650_131022_127024_130689_129009_128968_129620_129835_129981_130990_129900_129481_129643_124030_130715_110085_127969_123290_131003_130755_128522_130603_127417_130169_130597; BDRCVFR[CZsEJLjIHxn]=mk3SLVN4HKm; BD_HOME=0; BD_UPN=19314353; H_PS_645EC=9177oc1QLCGlYixP0p1BWacVNlZ7iBSRUYG3hQsm1UUVA%2BhRR7MqlNWHYoo; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; delPer=0; BD_CK_SAM=1; PSINO=5; BDSVRTM=221",
    # "BAIDUID=94923EA0E0E8D30009C2B72E745D4F07:FG=1; BIDUPSID=354E23F6B181BF93E240103FFE599A00; PSTM=1534415173; BD_UPN=1352; BDUSS=ZFajRreFpDQXhYN3hJZXRFYzR1UnQ2SzVUOFVKZS1hU3ZWTDl6Mzg4YXdHV0ZjQVFBQUFBJCQAAAAAAAAAAAEAAAB63jMtyua3~rXE0KHSsMOoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALCMOVywjDlcNn; BDRCVFR[gltLrB7qNCt]=mk3SLVN4HKm; delPer=0; BD_CK_SAM=1; PSINO=6; H_PS_PSSID=1453_21101_28329_28414; H_PS_645EC=e3fcUBV3O5xq4L%2FgrLemgCaGuvDTOrd3JamPQyqdZjteS%2FEpv3Lhvlp77SPPHL%2BAtIWT; BDORZ=FFFB88E999055A3F8A630C64834BD6D0",
    # "BAIDUID=DFB280E36B44635B5AD2669B9C11C2EC:FG=1; BIDUPSID=DFB280E36B44635B5AD2669B9C11C2EC; PSTM=1544663614; BDUSS=kZjekdFWWlHcWxpVzRVa3V6Y0dON1YxYkVITk5WV3VQV1lEQng4SWlGUVJHMkZjQVFBQUFBJCQAAAAAAAAAAAEAAAB63jMtyua3~rXE0KHSsMOoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGOOVwRjjlcT; H_PS_PSSID=1426_21124_28328_26350_28413_22157; BDRCVFR[feWj1Vr5u3D]=I67x6TjHwwYf0; delPer=0; PSINO=7; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BD_HOME=1; BD_UPN=1126314751; BD_CK_SAM=1; H_PS_645EC=4c3cFqmfOc72qjYG0bsBGVKOESJc%2FR%2FKRE8bk%2FOGSNjlA4J4YTHIzgkZHiB%2BcYf5jvla; BDSVRTM=128"
    # "BAIDUID=6E9CDEA895645364D44CD7F7D59146B9:FG=1; PSTM=1542371903; BIDUPSID=75696BC3CC08EFB35DA8C92523CC94FD; BDUSS=IwQnJBMHQyQi1PMWFJSWNmZ00tQXZiMFBFS05wYUZYUnlqN2h0bX5DTG4tVzFjQVFBQUFBJCQAAAAAAAAAAAEAAABCIqEs0KHCv9fTusjSu7GtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOdsRlznbEZcQj; MCITY=-56%3A268%3A149%3A186%3A114%3A; BDRCVFR[EzYDMnK0Xs6]=6NkqZ62mc9TUy73IA9EUB4WU6; delPer=0; BD_CK_SAM=1; PSINO=3; H_PS_PSSID=1450_21111_28328_28413_20719; BD_UPN=17314353; sug=3; sugstore=0; ORIGIN=0; bdime=0; H_PS_645EC=faa9nqGWnQR27iiRN8vEqJAKDEmH72%2BCNboAm1qX45vGpPJvjcJ%2BL9vGLLQxvQ; BDORZ=FFFB88E999055A3F8A630C64834BD6D0"
    # "BAIDUID=F20A7A47314E94723ED477B5DA55DB49:FG=1; BIDUPSID=F20A7A47314E94723ED477B5DA55DB49; PSTM=1548312797; BDRCVFR[CZsEJLjIHxn]=mk3SLVN4HKm; BD_HOME=0; BD_UPN=19314353; H_PS_645EC=49fad1MT6kDj6dU9bz217ERdcf3fZHAhER%2Bxp9gGdfO9aKt3rZGYHXl5cS1UjlM6VQAjkTUd; BDORZ=FFFB88E999055A3F8A630C64834BD6D0; delPer=0; BD_CK_SAM=1; PSINO=3; BDSVRTM=86; H_PS_PSSID="
    # "people=0; Hm_lvt_192fa266ff34772c28e4ddb36b8f4472=1545977277; devStoken=28281ed3c72f05713bba11d2b8e265eab0f434e0210e0dcb446ad9e161083a7a; bjhStoken=a57a65cfc15ef3d83ab7339f5a345d2db0f434e0210e0dcb446ad9e161083a7a; gray=0; Hm_lvt_407473d433e871de861cf818aa1405a1=1545968469,1546049752,1546054128,1548313099; Hm_lpvt_407473d433e871de861cf818aa1405a1=1548313099; BAIDUID=1F1F91CF97EC445D3D551A43090A5E4F:FG=1; PSTM=1526394288; BIDUPSID=701351AA5750234FEE31F0448D27A545; BDUSS=5oMWplNUlyWVJjWU9nRE52dGJVSXFKMkx3NlpiR1V4aFJsSmpJcmI4VklTMDFjQVFBQUFBJCQAAAAAAAAAAAEAAADwrhqhsKzLub20bWUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEi-JVxIviVca2; BDRCVFR[H8bGj7EaiuR]=9xWipS8B-FspA7EnHc1QhPEUf; delPer=0; PSINO=7; H_PS_PSSID=; BDORZ=FFFB88E999055A3F8A630C64834BD6D0"
    # "BD_UPN=12314753; BIDUPSID=C268679A79048FE733F51DC8AFE3580A; PSTM=1540549005; BAIDUID=90FE94AE7F9EE8A1ECC81D8DACEA3EE5:FG=1; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; delPer=0; BD_CK_SAM=1; PSINO=5; H_PS_PSSID=26525_1446_21092_18559_28328_26350; H_PS_645EC=abf1Z4%2Bql%2B37xKdLKrKdT7cw269mT6FmkL3Pp7ltAb8UdTBhrVKWn%2BoIh1g; BDSVRTM=0; ispeed_lsm=4",
    # "BAIDUID=77E95A0734516D7995E524D01335E9DA:FG=1; BIDUPSID=77E95A0734516D7995E524D01335E9DA; PSTM=1548313983; BDRCVFR[2LBYrOI1yFb]=mk3SLVN4HKm; BD_HOME=0; BD_UPN=12314753; H_PS_645EC=d127WlacVg%2FN7Ai55kIjL3XQrku4duCNsgLJd4Xgv7dnZ2qZOB6c4uNTmQ8; WWW_ST=1548313997494; delPer=0; BD_CK_SAM=1; PSINO=2; BDSVRTM=131; H_PS_PSSID=1456_25809_21106_18559_28131_28266; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598"
    # "BAIDUID=33A3273D5A2720F3F1EA95FB657D4CA1:FG=1; BIDUPSID=33A3273D5A2720F3F1EA95FB657D4CA1; PSTM=1548313910; H_PS_PSSID=1444_21108_28328_26350_28414_20718; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; delPer=0; PSINO=2; BDRCVFR[dG2JNJb_ajR]=mk3SLVN4HKm; userFrom=ala"
    # "BAIDUID=035D2FA4DC190B172F00FDD9450B8B83:FG=1; BIDUPSID=035D2FA4DC190B172F00FDD9450B8B83; PSTM=1548314282; BDRCVFR[hKRKJel5si3]=aeXf-1x8UdYcs; BD_HOME=0; BD_UPN=12314753; H_PS_645EC=7babzCPkCw2GlfIHIC3LWDNKWt3wsklonDXXg%2FB8ImWmThcgdlNXmqHyo6CMoPpTtZKWWA; delPer=0; BD_CK_SAM=1; PSINO=2; BDSVRTM=105; H_PS_PSSID=1436_21083_28328; BDORZ=FFFB88E999055A3F8A630C64834BD6D0"
    # "BAIDUID=E1A4F8F70DE179F04C78E6B06E759B6F:FG=1; BIDUPSID=E1A4F8F70DE179F04C78E6B06E759B6F; PSTM=1548314428; delPer=0; BD_HOME=0; H_PS_PSSID=1446_21114_18560_28328_26350_28415; BD_UPN=15314753; BD_CK_SAM=1; PSINO=7; H_PS_645EC=d401YWWNzGRFKoYJL092Swz0CFAHu5WrFAz%2FZOOPcn0bTlNzcbZPJo%2BkjMY; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BDSVRTM=312"
    # "BAIDUID=7F38860920B84FE8DD59F994A71AB4A1:FG=1; BIDUPSID=7F38860920B84FE8DD59F994A71AB4A1; PSTM=1548314754; delPer=0; BD_HOME=0; H_PS_PSSID=1423_27212_21088_18559_28329_28415_22072; BD_UPN=12314753; BD_CK_SAM=1; PSINO=3; H_PS_645EC=be6eA6NldPmVcABAnaCjP470CdB6P3SStzUQu1h4%2BOYXI39oWoPjJ01%2Bnrw; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BDSVRTM=83"
]
#oppo,qq浏览器，UC,百度.搜狗,遨游,2345，360
BAI_DU_MOBIL_COOKIE = [
    "BAIDUID=E57BD7B9B591C885A073B5FC015A8422:FG=1; delPer=0; BDSFRCVID=qiLsJeCCxG3Ai-n9X0eqL8FqNE_X5265NA3M3J; H_BDCLCKID_SF=JJIfoDL2tCvbfP0k2-rHhPkehxJeanLXKKOLVMOsX-OkeqOJ2Mt5LtcDhGrvJPIHtKkDKJ5uXMPhhCLGXxL5XjtpeGDtt5DqJnCsL-35HtnEHJ7dhPTJKPk0qxby26nD2mJeaJ5n0-nnhpjYqtIBW588KtkO0Jow3GOv_C_KJlrNhpCRy66jK4JKjG0HtjJP; lsv=globalTjs_3aec804-wwwTcss_ff99ca0-wwwBcss_913e6aa-framejs_c07c712-globalBjs_9cc86be-sugjs_65e0ee7-wwwjs_ab84b92; BDICON=10294984.98; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; delPer=0; ysm=11031|11031; COOKIE_SESSION=889_2_2_9_2_t1_9_4_3_0_0_5_5_1548379184%7C9%230_0_0_0_0_0_0_0_0%7C0; MSA_WH=480_776; MSA_PBT=146; MSA_ZOOM=1000; rsv_i=2dc5G31GzrN%2BFLzliggn1DFV%2BZ1XeXpskppuKuyOCqIRGUR8wN9RUSC9AvnNwg%2BPjZ8peI%2B0NuHzqpUfkrZiSpbfKS6ekOY; FEED_SIDS=2230_0125_8; H_WISE_SIDS=128952_124610_125819_128490_114551_127238_129069_128047_127494_125696_128852_120178_127445_123018_128639_118884_118873_118845_118824_118804_128039_128457_107319_126996_127772_127404_129088_127768_128449_117433_128450_128402_129080_129036_124638_128790_129009_128968_128247_127797_126720_129026_127765_128019_124030_128341_110085_124866_123290_127701_127125_128763_127226_128601_127417_128960; BDSVRTM=56; plus_lsv=ddc613f2c501e5a7; plus_cv=1::m:d03af37f; Hm_lvt_12423ecbc0e2ca965d84259063d35238=1548222919,1548379306; Hm_lpvt_12423ecbc0e2ca965d84259063d35238=1548379306; BDSVRBFE=Go; SE_LAUNCH=5%3A25806304_0%3A25806321; __bsi=11107147091025175665_00_12_R_N_59_0303_c02f_Y",
    "BAIDUID=1679EA05013F55223175AAB91FC51663:FG=1; BIDUPSID=1679EA05013F55223175AAB91FC51663; PSTM=1532488638; delPer=0; BDSVRTM=23; BD_HOME=1; H_PS_PSSID=2883; PMS_JT=%28%7B%22s%22%3A1548379643728%7D%29",
    "plus_lsv=ddc613f2c501e5a7; plus_cv=1::m:d03af37f; BDSVRTM=602; __bsi=8493746695632481057_00_25_N_R_668_0303_c011_Y; BDSVRBFE=Go; wise_tj_ub=ci%40118_29_118_29_452_135_178%7Ciq%401_1_1_2411%7Ctse%401%7Csug%40-1_-1_-1_-1_-1_-1_-1; BDICON=10435377.97; hdCover=1; HOME_COVER_SHOW=2; HOME_COVER_SHOW_TIME=1548466348000; BAIDUID=077D341C48314C7790D5E2EAE8EE3B25:FG=1; rsv_i=5133CbUDoOyo0QoKooXbwAwRCx0ColThqqC0GIt%2B7sAFUgwcmSd9l37lvGR%2BvB%2F5b0KxZoEzMbVVLxQ6jrPEJR4PtCXV2uY; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; bd_af=1; SE_LAUNCH=5%3A25806332_0%3A25806332; H_WISE_SIDS=128953_126887_128490_128698_127273_123491_128065_127495_120187_106432_123019_118883_118865_118839_118827_118793_107319_126995_127771_127404_129087_127768_117328_128448_117430_128451_128818_128402_129080_129036_124633_128791_129008_128968_128246_128805_128771_126721_129144_127763_127773_124030_128707_128341_110085_123290_127126_128762_127318_128600_127417_128961_100458; delPer=0",
    "BAIDUID=F47D23584E79AF9DAC3C8282F193CC10:FG=1; delPer=0; PSINO=5; ysm=13978; COOKIE_SESSION=0_0_0_0_0_0_0_0_0_0_0_0_0_0%7C0%230_0_0_0_0_0_0_0_0%7C0; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; lsv=globalTjs_3aec804-wwwTcss_ff99ca0-wwwBcss_913e6aa-framejs_c07c712-globalBjs_9cc86be-sugjs_65e0ee7-wwwjs_ab84b92; wpr=0; MSA_WH=480_726; MSA_PBT=146; MSA_ZOOM=1000; BAIDULOC=11975233.090562_2980626.2566765_1_306_1548382660197; H5LOC=1; rsv_i=fd2a1qNXuJ1KS2rL144jfIiowx8jrv%2F0KeU3tTNd58RpKOLO6qbUITEXXNCDASikUjGmP7PvCt2H%2FNIYTCpxC4NgnXQ7OSM; FEED_SIDS=770517_0125_10; plus_lsv=ddc613f2c501e5a7; plus_cv=1::m:d03af37f; Hm_lvt_12423ecbc0e2ca965d84259063d35238=1548382683; Hm_lpvt_12423ecbc0e2ca965d84259063d35238=1548382683; SE_LAUNCH=5%3A25806368_0%3A25806378; wise_tj_ub=ci%40259_27_259_27_92_276_176%7Ciq%401_1_1_286%7Ccb%40-1_-1_-1_-1_-1_-1_-1%7Cce%401%7Ctse%401; H_WISE_SIDS=125704_125817_127276_129118_113878_114746_127483_128142_129142_120141_118895_118863_118848_118836_118791_128037_128457_107320_126995_127771_122034_127405_129087_127768_128448_117433_128451_128820_128402_129079_129036_127024_128789_129010_128442_128967_128246_127796_126722_129026_129145_127763_127678_124030_128707_128342_110085_123290_128763_128807_128601_127417_129039_128960; BDSVRTM=29; BDORZ=SFH; __bsi=11413569793656843859_00_12_R_R_1_0303_c02f_Y; BDSVRBFE=Go; BDICON=10123156; WISEWR=13",
    "BAIDUID=75368D1FA4B14CCFFBCB04DAB9C30B8D:FG=1; rsv_i=1a2cgk9wWIkLxctRyTy0Bli2SB6BMTbnnaZNLjBUAH6U%2ByTr1P1sMvoLqIl4pwSbbRftkLZfLyTjjSfnE%2FpDLSYhRvj7SZ0; H_WISE_SIDS=129204_126125_126707_127694_128699_127233_128048_127491_128145_128852_120217_127776_123019_128638_118894_118872_118845_118825_118786_128039_107320_126996_127771_127404_129087_127769_117331_128448_117433_128451_128820_128402_129080_129036_125087_128789_129010_128442_128968_128247_127797_126720_129027_124030_128707_128343_110085_124866_123289_127125_128763_127318_127224_128600_127417_129038_128959; BDSVRTM=58; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; plus_lsv=ddc613f2c501e5a7; Hm_lvt_12423ecbc0e2ca965d84259063d35238=1548383084; Hm_lpvt_12423ecbc0e2ca965d84259063d35238=1548383084; plus_cv=1::m:d03af37f; bd_af=1; SE_LAUNCH=5%3A25806384_0%3A25806384; __bsi=11347193246827113564_00_13_R_R_1_0303_c02f_Y; BDSVRBFE=Go; wise_tj_ub=ci%40131_28_131_28_105_148_36%7Ciq%401_1_1_284%7Ccb%40-1_-1_-1_-1_-1_-1_-1%7Cce%401%7Ctse%401; BDICON=116191228.112; WISEWR=13",
    "delPer=0; BDICON=10294984.98; wpr=1; BAIDUID=E57BD7B9B591C885A073B5FC015A8422:FG=1; delPer=0; BDSFRCVID=qiLsJeCCxG3Ai-n9X0eqL8FqNE_X5265NA3M3J; H_BDCLCKID_SF=JJIfoDL2tCvbfP0k2-rHhPkehxJeanLXKKOLVMOsX-OkeqOJ2Mt5LtcDhGrvJPIHtKkDKJ5uXMPhhCLGXxL5XjtpeGDtt5DqJnCsL-35HtnEHJ7dhPTJKPk0qxby26nD2mJeaJ5n0-nnhpjYqtIBW588KtkO0Jow3GOv_C_KJlrNhpCRy66jK4JKjG0HtjJP; lsv=globalTjs_3aec804-wwwTcss_ff99ca0-wwwBcss_913e6aa-framejs_c07c712-globalBjs_9cc86be-sugjs_65e0ee7-wwwjs_ab84b92; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; SE_LAUNCH=5%3A25806304_0%3A25806321; wpr=0; FEED_SIDS=2230_0125_10; ysm=11031|11031; COOKIE_SESSION=230_0_0_9_0_p1_17_4_6_0_0_5_22_1548383451%7C9%230_w2_0_0_1_1_2_1_1548383286%7C1; MSA_WH=480_776; MSA_PBT=146; MSA_ZOOM=1000; rsv_i=5f79OlpiEGNszviBKRbe7%2F06auH8hIm9rXcs4DLi5IRiuoYTIUFWY0ce9XdzXPNvvdUJlzf7Os1p3e%2F7hdJPnZoaJ3Mxgko; plus_lsv=ddc613f2c501e5a7; plus_cv=1::m:d03af37f; H_WISE_SIDS=128952_124610_125819_128490_114551_127238_129069_128047_127494_125696_128852_120178_127445_123018_128639_118884_118873_118845_118824_118804_128039_128457_107319_126996_127772_127404_129088_127768_128449_117433_128450_128402_129080_129036_124638_128790_129009_128968_128247_127797_126720_129026_127765_128019_124030_128341_110085_124866_123290_127701_127125_128763_127226_128601_127417_128960_100457; delPer=0; BDSVRTM=862; __bsi=11715227444044569154_00_12_R_N_948_0303_c02f_Y; BDSVRBFE=Go; wise_tj_ub=ci%4065_9_65_9_156_82_158%7Ciq%40-1_1_-1_-1%7Ctse%401%7Chis%40-1_-1_-1_-1_-1_-1_-1; BDICON=10294984.98; WISEWR=13",
    "wpr=0; BDICON=10294984.98; BAIDUID=FF5E2533BEF3E9A52737EE097813F011:FG=1; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; bd_af=1; SE_LAUNCH=5%3A25806397_0%3A25806397; rsv_i=0cb7lLP2qPb45AUisw3Dq%2BgBEkIGCkpaznLp4jP9vDSW4tATkrohSzpdM2BZL4xk%2BJ0Se5DdD%2FO64JCJXq1d2AJuV8FZg9Y; FEED_SIDS=721704_0125_10; plus_lsv=ddc613f2c501e5a7; plus_cv=1::m:d03af37f; BDICON=10294984.98; H_WISE_SIDS=129203_126887_125819_127694_100808_129117_128048_114744_127494_127993_120202_128639_118897_118876_118850_118826_118788_128038_107317_126996_127772_127405_129087_127768_117335_128448_117429_128451_128820_128402_129080_129037_127025_128791_129010_128967_128247_128770_126720_129025_129144_127764_128353_127678_124030_128707_128343_110085_124865_123289_128763_128558_127416_128962; delPer=0; BDSVRTM=31; lsv=globalTjs_3aec804-wwwTcss_ff99ca0-wwwBcss_913e6aa-framejs_c07c712-globalBjs_9cc86be-sugjs_65e0ee7-wwwjs_ab84b92; MSA_WH=480_854; MSA_PBT=146; MSA_ZOOM=1000; COOKIE_SESSION=0_0_0_1_0_t1_4_0_1_0_0_1_0_1548383951%7C1%230_0_0_0_0_0_0_0_0%7C0; wise_tj_ub=ci%40104_22_104_22_175_155_85%7Ciq%40-1_1_-1_-1%7Ctse%401%7Csug%40133_16_133_16_194_150_118",
    "BAIDUID=498E23EAF99C37B86D488938962D71BC:FG=1; delPer=0; PSINO=6; ysm=12441; wise_tj_cl=i@0|v@1|sInfo@480_854_480_854_981_1495|fInfo@0_0_0_0|dpr@1.5; COOKIE_SESSION=0_0_0_0_0_0_0_0_0_0_0_0_0_0%7C0%230_0_0_0_0_0_0_0_0%7C0; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; lsv=globalTjs_3aec804-wwwTcss_ff99ca0-wwwBcss_913e6aa-framejs_c07c712-globalBjs_9cc86be-sugjs_65e0ee7-wwwjs_ab84b92; wpr=0; rsv_i=8841bn76D%2BnRmjkaLD1aQ2KTB1QO%2B%2FNuc4%2F7djim3AcbIDglWE7qH3kJiTTlXp%2B%2FFEG%2Fw3XwveNZnxYcm3JIb4UTf6CAwFE; FEED_SIDS=190318_0125_10; H_WISE_SIDS=124612_125820_128355_127287_127235_129069_128045_115654_128225_127484_128145_129153_120138_123018_118888_118858_118857_118835_118795_128037_107315_126996_127771_127405_129087_127770_128449_117436_128450_128818_128402_129080_129037_124893_128789_129010_128442_128967_128247_128805_127797_126720_129025_127764_128683_124030_128708_128343_110085_123289_128487_127123_128763_127317_127425_128602_127416_128960; BDSVRTM=59; plus_lsv=ddc613f2c501e5a7; plus_cv=1::m:d03af37f; SE_LAUNCH=5%3A25806403_0%3A25806403; wise_tj_ub=ci%4076_33_76_33_153_93_182; __bsi=12275619233890282911_00_11_R_R_22_0303_c02f_Y; BDSVRBFE=Go",
    "BAIDUID=012CD591C522CFDAA97638EBAA1C9B39:FG=1; FEED_SIDS=759442_0125_10; BDORZ=AE84CDB3A529C0F8A2B9DCDD1D18B695; SE_LAUNCH=5%3A25806414_0%3A25806414; rsv_i=500fHDKNndU5TNbLvBWJ%2BVWOXtFEAPT92f%2B8buXPofauEtgSE%2Fhw8Y748xYYAb%2BJmbexrTG%2FqxfGB7Z1O7R4xYBVeMDJayE; H_WISE_SIDS=128953_124610_125818_127694_127286_129069_106370_127495_120185_125667_123018_118879_118860_118846_118828_118801_128037_128363_107314_126995_127771_127404_129087_127768_128449_117437_128451_128818_128402_129079_129037_127026_128790_129010_128967_128247_128805_127797_114820_126722_129025_129146_128020_124030_128343_110085_123290_128763_128808_126682_128558_128196_128959; BDSVRTM=60; plus_lsv=ddc613f2c501e5a7; __bsi=11912896317231468825_00_11_R_R_67_0303_c02f_Y; plus_cv=1::m:d03af37f; Hm_lvt_12423ecbc0e2ca965d84259063d35238=1548384884; Hm_lpvt_12423ecbc0e2ca965d84259063d35238=1548384884; wise_tj_ub=ci%40134_25_134_25_109_151_174",

]
BAI_DU = {
    # "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    # "Accept-Encoding": "gzip, deflate, br",
    # "Accept-Language": "en,zh-CN;q=0.9,zh;q=0.8",
    "Cache-Control": "max-age=0",
    "Connection": "keep-alive",
    "Cookie": random.choice(BAI_DU_COOKIE),
    "Host": "www.baidu.com",
    "Upgrade-Insecure-Requests": "1"
}
BAI_MOBIL = {
    'Host':'m.baidu.com',
    'Connection':'keep-alive',
    # 'Accept':'text/html',
    'Cache-Control':'private',
    'X-Requested-With':'XMLHttpRequest',
    'Async-Type':'xml',
    'Accept-Encoding':'gzip,deflate',
    'Accept-Language':'zh-CN,en-US;q=0.8',
    'Cookie':random.choice(BAI_DU_MOBIL_COOKIE)
}

#谷歌、火狐、遨游、搜狗、百度
SOGOU_PC_COOKIE = [
    "ABTEST=8|1554970709|v17; IPLOC=CN3100; SUID=4689E7652E18960A000000005CAEF855; SUV=1554970709156645; sct=1; SNUID=804E21A2C7C240FB13E5446DC7785D4D; ld=6lllllllll2trsPblllllVhmMV7lllllBWWJSkllll9llllljZlll5@@@@@@@@@@; browerV=3; osV=1; sst0=583",#UC
    "IPLOC=CN3100; SUID=4589E7653118960A000000005C496516; SUV=1548313899597180; pgv_pvi=8032533504; ABTEST=2|1554970067|v17; usid=2flmv4jOAGUq10ie; browerV=13; osV=1; taspeed=taspeedexist; pgv_si=s2105384960; sct=2; SNUID=0DC2AD2F4A4FCD778CFA0BDD4B7CC325; ld=Akllllllll2trsNIlllllVhmdL6lllllBWWJSkllll9llllljZlll5@@@@@@@@@@; sst0=263"#QQ
    ,"usid=zfZ-YnsjU4P6Bdo0; IPLOC=CN3100; SUV=00CF55DF65E789465CAEDF25613E6461; SUID=5E78A9B42B12960A000000005CAEE55E; ABTEST=0|1554966740|v17; sct=1; SNUID=65AAC5472327A518CBB260D023C9CBC3; ld=hkllllllll2trm0zlllllVhmf2olllllBWWJSkllll9llllljZlll5@@@@@@@@@@; YYID=828F033D22CB00537D75DB5D1F603757; browerV=8; osV=1; sst0=967"
    ,"SUID=4689E7655C68860A59FBEA9F0006E2B6; SUV=1513301330236380; SMYUV=1513301330237062; GOTO=; toutiao_city_news=%E5%8C%97%E4%BA%AC; _ga=GA1.2.1958303637.1520212356; pgv_pvi=2476986368; usid=tNoCbubqeUME2D0J; wuid=AAGjkLTnIQAAAAqUKlhpyggAkwA=; IPLOC=CN3100; sw_uuid=502185430; ssuid=113305374; ABTEST=0|1548726258|v17; browerV=3; osV=1; sct=2; ld=Byllllllll2tS7AXlllllVe6TLZlllllBWWJSyllll9lllllRklll5@@@@@@@@@@; LSTMV=240%2C73; LCLKINT=3624; SNUID=05C9D85A403AC2194458B1A5404ACA2F"
    ,"SUV=00D82B8765E789425B552D0DB51AB133; CXID=991EE7E3EE43A52450FCE3D7FBBCECB5; SUID=DC55D6676F128B0A5B614F83000197DB; wuid=AAGwAb7nIQAAAAqWGFP6SgIAkwA=; IPLOC=CN3100; SNUID=CC036DEC8A8FF361DFABF6668ABF6DA5; sct=10; pgv_pvi=1443306496; usid=gS0yxoFmASAqzq03; FREQUENCY=1534131377199_13; LSTMV=50%2C49; LCLKINT=12807; sw_uuid=1515478159"
    ,'SUV=006F596765E789455BEEF876A81A9919; CXID=E4A235C0467B98A262BA48939B24A959; IPLOC=CN3100; GOTO=Af22417-3002; ad=CEfdWkllll2bEsPLlllllVe$QntlllllBWWJSyllllylllll9XDll5@@@@@@@@@@; SUID=DC55D6674D238B0A5B86449D00029A18; ABTEST=0|1550477523|v17; sct=2; SNUID=EE234CCEAAAF298D0549D7D7AB20B358; ld=glllllllll2bMLzxlllllVe$z5wlllllBWWJSyllll9lllll9klll5@@@@@@@@@@; browerV=9; osV=1; taspeed=taspeedexist; pgv_pvi=6991916032; pgv_si=s6317496320; sst0=7; LSTMV=719%2C28; LCLKINT=59099'
    ,'IPLOC=CN3100; SUV=00B40CF065E789455C6A5FBD5FA06334; usid=XxJwIMKDzvJbxmv4; ABTEST=4|1550477681|v17; SUID=4589E7653118960A000000005C6A6971; SNUID=C70B64E7828701A4356EBAED835622D0; ld=8Zllllllll2tzuOilllllVe$zg6lllllBWWJSyllll9lllll9klll5@@@@@@@@@@; YYID=828F033D22CB00537D75DB5D1F603757; browerV=8; osV=1; taspeed=taspeedexist; pgv_pvi=3989425152; pgv_si=s5362997248; LSTMV=717%2C33; LCLKINT=17601; sct=1'
    ,'ABTEST=2|1550478013|v17; browerV=14; osV=1; taspeed=taspeedexist; sst0=835; IPLOC=CN3100; SUID=4589E7653118960A000000005C6A6ABD; SUV=1550477854801466; sct=1; SNUID=16DAB4365456D67298DC1A4B542B0B18; ld=Kkllllllll2tzurRlllllVe$z7GlllllBWWJSyllll9lllll9klll5@@@@@@@@@@; pgv_pvi=6209131520; pgv_si=s3508044800; LSTMV=230%2C647; LCLKINT=928'
]
#QQ浏览器，qq浏览器
SOGOU_MOBIL_COOKIE = [
    'SUV=0062108A67D655DC5B70E2CA5F9D8669; wuid=AAEg2JPnIQAAAAqUKh3ynggAiQM=; CXID=2F792C03D6792C3663F2301575279727; SUID=DC55D6672320940A000000005B70F117; userGroupId=18; SNUID=73FA78C8AFABDD28242462D6AF9ED9A5; IPLOC=CN3100; FREQUENCY=1534125897276_24; ABTEST=0|1550480809|v1; SNUID=EA3957D5AFB52D88C14F9E04B0A17421; fromwww=1; usid=F2qgPA1xtbU_h-O9',
    'SNUID=2FE28D0F6A6FE9429B1FD7976B1942C7; IPLOC=CN3100; SUID=4589E7653118960A000000005C6A8ECC; ld=Ukllllllll2tzoEGlllllVe$07ZlllllBWWJSyllll9lllll9klll5@@@@@@@@@@; SUV=00E1323B65E789455C6A8ECD7B0FB298; LSTMV=216%2C177; LCLKINT=7271; ABTEST=0|1550487300|v1; wuid=AAGImNy2JQAAAAqWGFXqWQkAiQM=; fromwww=1; CXID=94F29DC24822CF24469F3AE476C4490D; usid=DCCqKtHIsJ94ghdE',
    "ABTEST=0|1550487804|v1; IPLOC=CN3100; SUV=004F43CB65E789455C6A90FCA0D39086; SNUID=965A34B1D3D151FDC7E5D657D49015D0; wuid=AAEWZeS2JQAAAAqWIkZjEwgAiQM=; CXID=9A8CCDA95919CC9205E3ED620F0B13C6; JSESSIONID=aaaM1RYesE6sE52yQbRJw; usid=Pb8IcsULXTUdHwqW",
    "ABTEST=4|1550488090|v1; SNUID=A06C0380E5E166CCC605450CE5F4D9E3; IPLOC=CN3100; SUV=009F4D6965E789455C6A921AAD81C366; wuid=AAEtqei2JQAAAAqWGFYzhQkAiQM=; CXID=752FAEFC56ACE1CDFED9CC44A39DFA9A; JSESSIONID=aaaUf2LzrNFGw409SaRJw; usid=BuPCi1VQNKM4l1vP",
    "ABTEST=4|1550488288|v1; IPLOC=CN3100; SUV=009233AB65E789455C6A92E0A1AEA696; SNUID=4589E79AFFFA82292FA8045E00F5E3CB; wuid=AAFxrOu2JQAAAAqWGFK5zwkAiQM=; fromwww=1; CXID=420748B2A23BBE5D54992D03F3C78E40; usid=OE2IkNXBEasijsYs",
]

SOGOU_PC = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate, br",
    "Accept-Language": "en,zh-CN;q=0.9,zh;q=0.8",
    "Connection": "keep-alive",
    "Cache-Control":'no-cache',
    "Cookie": random.choice(SOGOU_PC_COOKIE),
    "Upgrade-Insecure-Requests":" 1"
}
SOGOU_MOBIL = {
    # "Host":"m.sogou.com",
    "Connection":"keep-alive",
    "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
    # "Accept-Encoding":"gzip,deflate",
    "Accept-Language":"zh-CN,en-US;q=0.8",
    "Cookie":random.choice(SOGOU_MOBIL_COOKIE),
    "X-Requested-With":"com.android.browser",

}
#默认浏览器,
MOBIL_SO_COOKIE = [
    '__guid=34870781.1212561175101324300.1533798994380.935; env_webp=1; mso_ext=480!1!1.5; SORR_T=%7B%22q%22%3A%22%E6%90%9C%E7%8B%97%E6%90%9C%E7%B4%A2%22%2C%22index%22%3A%220%22%2C%22pn%22%3A%221%22%2C%22type%22%3A2%7D; _S=a86bvciemfv94kq7hkt8e9cfob; stc_ls_s=)0YR4TZ!6RazlV-IAIcWCSdzh-EX',
    '__guid=34870781.3119200259745300500.1550487861689.6848; env_webp=1; mso_ext=480!1!1.5; SORR_T=%7B%22q%22%3A%22%E7%A5%9E%E9%A9%AC%E6%90%9C%E7%B4%A2%22%2C%22index%22%3A%220%22%2C%22pn%22%3A%221%22%2C%22type%22%3A2%7D; _S=urqlnc3hr18tr3nmbj160csvro; stc_ls_s=)0YR4TZ!6RazlV-IAIcWCSdzh-EX',
    '__guid=34870781.303166794797276860.1550488333758.0427; env_webp=1; mso_ext=480!1!1.5; SORR_T=%7B%22q%22%3A%22%E7%A5%9E%E9%A9%AC%E6%90%9C%E7%B4%A2%22%2C%22index%22%3A%220%22%2C%22pn%22%3A%221%22%2C%22type%22%3A2%7D; _S=te7kicunen29k2j2ml23js6bqq; stc_ls_s=)0YR4TZ!6RazlV-IAIcWCSdzh-EX',
]
MOBIL_SO = {
    # "Host":"m.so.com",
    "Connection":"keep-alive",
    "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
    "Accept-Encoding":"gzip,deflate",
    "Accept-Language":"zh-CN,en-US;q=0.8",
    "Cookie":random.choice(MOBIL_SO_COOKIE),
    # "X-Requested-With":"com.android.browser",
    # "X-Requested-With":"com.mx.browser",
}
SHENMA_COOKIE = [
    'sm_uuid=3158e1d66bc3188e941f6fd861f34c5a%7C%7C%7C1550487600; sm_diu=3158e1d66bc3188e941f6fd861f34c5a%7C%7C1303f3ec4f79832399%7C1550487600; cna=MH7xFFEYdzACAWfWVdr4kXRq; isg=BHp6le1A8p8wJ37zJNLpgbqmwKmcK_4FoeB2r4RzJ43ZdxuxbrswFezBx8UMfHad',
    'sm_uuid=1a89c2b9cfbdbaa17266fbc283039a12%7C%7C%7C1540466600; cna=iIPxE3CA62ECAWfWVdzjBDrd; lsmap2=ws1wtdzc2zd9ze2zfezi1zjszo1zp1; sm_diu=1a89c2b9cfbdbaa17266fbc283039a12%7C%7C1303f3ec4f7983b9af%7C1550487722; isg=BBgYtrrq8JEe-tuupVDk77Kq4k-qAXyLDypUCVIJZdME7bnX-BHYG5bLJeP6ZjRj',
    'sm_diu=39ca36a88fe004e287b9e556f66dacc3%7C%7C1303f3214f7983e8ad%7C1550487803; sm_sid=39ca36a88fe004e287b9e556f66dacc3; cna=/H7xFG7wEyUCAWfWVdqAVKsW; sm_uuid=b057a1c5fafaf0f2b5d699bb8da46a58%7C%7C%7C1550488041; isg=BIiIZUzeQMHvdaxFYtR-cETyUv-aMew7JpfT0UI51YP0HSmH6EE6y7oblTPKNqQT',
    'sm_uuid=bbe8c34e6ace707d1969299010b98bd4%7C%7C%7C1550488222; sm_diu=bbe8c34e6ace707d1969299010b98bd4%7C%7C1303f3ec4f79818d61%7C1550488222; cna=noDxFFZEUh8CAWfWVdpPxSnp; isg=BJCQTWqp-HnUhaR9qM43Lk5uatfiWXSj8GMLzophXuu_xTJvMmnAMz13mUuADix7',
    'sm_uuid=fd034d64e8db0821ed4cb464e003bda1%7C%7C%7C1550488388; sm_diu=fd034d64e8db0821ed4cb464e003bda1%7C%7C1303f3ec4f798057f6%7C1550488388; cna=RYHxFC+cb0YCAWfWVdqANfG+; isg=BLi40-D-EHG9Onz1MVw8IBB_gm9KIRyrdg1KdvIpBfOnDVn3mDGcO2qvwcMYRtSD',
]

SHENMA_MOBIL = {
    "Connection":"keep-alive",
    "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
    "Accept-Encoding":"gzip,deflate",
    "Accept-Language":"zh-CN,en-US;q=0.8",
    "Cookie":random.choice(SHENMA_COOKIE),
    "X-Requested-With":"com.android.browser",
}
#谷歌、搜狗、百度、火狐,e
PC_SO_COOKIE = [
    "QiHooGUID=3B259EAF42C07E68A259A833B3CA9AF7.1554970784498; _S=90u62t6qattmun1vi0stbh00c5; __guid=15484592.4209765575362597400.1554970783978.1838; stc_ls_sohome=RIzW2OYRKX!nTRXXh)M(Wc; webp=1; __huid=11uTyVempoBEtDWBPtKhQNNLwVGqSWc0XRzXf2IL%2FtDqg%3D; gtHuid=1; dpr=1; screenw=1; count=3; erules=p3-2%7Cp4-4%7Cp1-3%7Ckd-1"#UC,
    "__guid=15484592.2990469406212976600.1531530381211.9053; __huid=114CKlrq7ylrewmnSt%2B4SfkMEIyL%2FyN69qVj1RCxa00tc%3D; __DC_gid=6491553.775082597.1533003476474.1533003476474.1; QiHooGUID=6780CA0A789B650734D0DF762AFCCF38.1533177903701; dpr=1; webp=1; env_webp=1; Qs_lvt_66435=1533191105; Qs_pv_66435=705713551467715200; Qs_lvt_100433=1548724499; Qs_pv_100433=1737950284212281000; _S=p3qvf1vg9plh5umj6gd5mi20f7; stc_ls_sohome=RIzW2OYRK~!3TRX~hMM(Wc; gtHuid=1; count=3"
    ,"QiHooGUID=D168F3CE439D282D13A813C7B5CE4E72.1550477779387; _S=bv5t6q8tpmi7343udk96lk96o4; __guid=15484592.1291630689760209200.1550477620861.8442; stc_ls_sohome=RIzW2OYRK~!3TRX~hMM(Wc; webp=1; __huid=11TNj3REB4x%2F03cRN5JwXAaqORPlhM3gXbHOGRkzrFJb4%3D; gtHuid=1; dpr=1; count=3"
    ,'QiHooGUID=F96BCAFB571150AF4238ABEB7FF783C6.1550478074168; _S=bua69q8beh61t3972gim06jr33; webp=1; stc_ls_sohome=RIzW2OYRK~!3TRX~hMM(Wc; gtHuid=1; dpr=1; count=3; __guid=15484592.1725540725688061000.1550477915567.6028; __huid=11SyQJPqSY27Qb74PkL3IbYeBVas3UzTKYC6qNsVSYNAQ%3D'
    ,'QiHooGUID=3089964E1FEF522A8D95288A852B7520.1532659077181; __guid=15484592.414106538735671400.1532659075989.947; __huid=10Pene6%2BHQ6T8W3ADSTzctVsI3TIRYnFbzh7Jiw5QooIE%3D; dpr=1; __gid=9114931.302923865.1533279361971.1546579177344.33; count=5; _S=2smhfud4661t8mf5q8botpafv2; stc_ls_sohome=RIzW2OYRK~!3TRX~hMM(Wc; gtHuid=1; webp=0'
    ,'QiHooGUID=4BA67CCAA400E128F80940CFC556ED28.1550479405952; _S=1uss3adedr63chmaovjtht2fh3; stc_ls_sohome=RIzW2OYRK~!3TRX~hMM(Wc; count=3; gtHuid=1; dpr=1; webp=0; __guid=15484592.80416671952837360.1550479406060.2082; __huid=11BPtQbkVJFZ4cp7PQccRefMKjSRBIKbmZdU1dAT1p6G8='
]

PC_SO = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
    "Accept-Encoding": "gzip, deflate, br",
    "Accept-Language": "en,zh-CN;q=0.9,zh;q=0.8",
    "Cache-Control": "max-age=0",
    "Connection": "keep-alive",
    "Cookie": random.choice(PC_SO_COOKIE),
    "Upgrade-Insecure-Requests":"1"
}



class RandomUserAgent(object):

    def __init__(self):
        self.random = self.u_random()
        self.random_ios = self.u_random_ios()
    def u_random(self):
        useragent = random.choice(USERAGENT)
        return useragent
    def u_random_ios(self):
        useragent = random.choice(USERAGENT_IOS)
        return useragent

if __name__ == '__main__':
    r = RandomUserAgent()
    print(r.u_random())